package com.richpay.landiprintdemo.data;

/**
 * 交易类型
 */
public enum TransType {

    SALE("消费", 1),//银行卡
    SALE_REVOKE("消费撤销", 2),//银行卡撤销
    QR_SALE("扫码消费", 3),
    QR_REVOKE("扫码撤销", 4),
    AUTH("预授权", 5),//
    AUTH_REVOKE("预授权撤销", 6),
    AUTH_COMPLETE("预授权完成", 7),
    AUTH_COMPLETE_REVOKE("预授权完成撤销", 8),
    INSTALMENT("分期付款", 9),
    CASH("现金记账", 10),
    SALE_REFUND("刷卡退货", 11),
    QR_REFUND("扫码退货", 12),
    QR_AUTH("扫码预授权", 13),
    QR_AUTH_REVOKE("扫码预授权撤销", 14),
    QR_AUTH_CM("扫码预授权完成", 15),
    QR_AUTH_CM_REVOKE("扫码预授权完成撤销", 16);

    private String type;

    private int code;

    TransType(String type, int code) {
        this.code = code;
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}
